Add getBulkIdsForIndex to SqlStorage for commcare-core master compat#1765
Add getBulkIdsForIndex to SqlStorage for commcare-core master compat#1765dannyroberts merged 3 commits intomasterfrom
Conversation
commcare-core master added getBulkIdsForIndex(String, Collection<String>) to the IStorageUtilityIndexed interface but formplayer's SqlStorage never implemented it, causing a compilation failure. Implementation follows the same pattern as the existing getBulkRecordsForIndex method. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Picks up getBulkIdsForIndex on the IStorageUtilityIndexed interface and other master changes needed for cross-repo compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1765 +/- ##
============================================
- Coverage 70.21% 70.09% -0.12%
Complexity 2029 2029
============================================
Files 257 257
Lines 7996 8009 +13
Branches 761 763 +2
============================================
Hits 5614 5614
- Misses 2099 2112 +13
Partials 283 283 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I reset the submodule to the last commit on dimagi/commcare-core#1506 to show that tests pass. But that is probably not actually exactly what we want to merge. Better for that PR to first be merged, then for formplayer branch to be merged into master, then for this PR to point to latest master on commcare-core. What I did here was just a quick and dirty way to get something similar to that. (And you can see, tests pass.) |
shubham1g5
left a comment
There was a problem hiding this comment.
The method implementation looks right to me here.
Product Description
No user-facing changes. This is an internal compatibility fix.
Technical Summary
commcare-core
masteraddedgetBulkIdsForIndex(String, Collection<String>)to theIStorageUtilityIndexedinterface, but formplayer'sSqlStoragenever implemented it. This causes a compilation failure when building formplayer against commcare-coremaster.getBulkRecordsForIndexmethod, returning record IDs instead of deserialized objects.Safety Assurance
Safety story
getBulkRecordsForIndex, which is already well-tested in production.masterwith this change.Automated test coverage
The method is currently only needed for interface compliance. It will be exercised once formplayer fully migrates to commcare-core
master.QA Plan
masterSpecial deploy instructions
Rollback instructions
Review
🤖 Generated with Claude Code